package cn.iocoder.yudao.module.base.controller.admin.productinfo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 产品信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ProductInfoRespVO {

    @Schema(description = "序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "27561")
    @ExcelProperty("序号")
    private Long id;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @ExcelProperty("名称")
    private String name;

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("编号")
    private String code;

    @Schema(description = "规格", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("规格")
    private String spec;

    @Schema(description = "群组", requiredMode = Schema.RequiredMode.REQUIRED, example = "9514")
    @ExcelProperty("群组")
    private Long groupId;

    @Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "17880")
    @ExcelProperty("单位")
    private Long unitId;

    @Schema(description = "图片")
    @ExcelProperty("图片")
    private String image;

    @Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "类型", converter = DictConvert.class)
    @DictFormat("base_product_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer type;

    @Schema(description = "种类", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "种类", converter = DictConvert.class)
    @DictFormat("base_product_category") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer category;

    @Schema(description = "管理类型", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "管理类型", converter = DictConvert.class)
    @DictFormat("base_product_manage_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer manageType;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("显示顺序")
    private Integer sort;

    @Schema(description = "备注", example = "随便")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "产品群组", example = "随便")
    @ExcelProperty("产品群组")
    private String groupName;

    @Schema(description = "计量单位", example = "随便")
    @ExcelProperty("计量单位")
    private String unitName;

}